﻿using CommunicationClass.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static CommunicationClass.Client.ClientCommunication;
using static CommunicationClass.Model.SendReceiveEnum;

namespace CommunicationClass.Client.Model
{
    public class TCPClientDelegate
    {
        /// <summary>
        /// 客户端发送消息状态委托
        /// </summary>
        /// <param name="IsSend">是否成功</param>
        /// <param name="Data">详细信息</param>
        public delegate void DelegateIsSendMessage(bool IsSend,string Data);
        /// <summary>
        /// 接收的消息
        /// </summary>
        /// <param name="messageModel">消息</param>
        /// <param name="MessageType">消息类型</param>
        public delegate void DelegateReceiveMessage(MessageModel messageModel, SendTypeEnum MessageType);
        /// <summary>
        /// 加载登录信息
        /// </summary>
        /// <param name="data">登录成功加载数据</param>
        /// <returns>Json数据</returns>
        public delegate void DelegateLoadData(string data);

        /// <summary>
        /// 用户是否拒绝连接
        /// </summary>
        /// <param name="userConnectHole"></param>
        /// <returns></returns>
        public delegate bool DelegateIsConnect(UserConnectHole userConnectHole);


    }
}
